package com.tarena.lbs.business.service;

import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.pojo.param.BusinessLoginParam;
import com.tarena.lbs.business.pojo.param.BusinessParam;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import com.tarena.lbs.business.pojo.vo.BusinessStoreVO;
import com.tarena.lbs.business.pojo.vo.BusinessVO;

public interface BusinessService {

    /**
     * 商家登录
     */
    BusinessVO login(BusinessLoginParam param);

    /**
     * 分页查询商家列表
     */
    PageResult<BusinessVO> pageList(BusinessQuery query) throws BusinessException;

    /**
     * 新增商家
     */
    void save(BusinessParam param) throws BusinessException;

    /**
     * 删除商家
     */
    void delete(Integer businessId) throws BusinessException;

    /**
     * 查询商家详情 + 店铺信息
     */
    BusinessStoreVO busiStoreDetail(Integer businessId) throws BusinessException;
}



